<st #st [data]="tableData" [columns]="stColumn" [total]="TABLE_PARAMETER.page.total" [size]="TABLE_PARAMETER.size"
  [pi]="TABLE_PARAMETER.pi" [ps]="TABLE_PARAMETER.ps" [page]="TABLE_PARAMETER.page" [bordered]="false" expandRowByClick
  [expandAccordion]="false" [scroll]="{ y: '550px' }" [loading]="loading" [expand]="expand" [rowClassName]="highlight">
  <ng-template st-row="number" let-index="index">
    {{ ((st.pi ? st.pi : 1) - 1) * (st.ps ? st.ps : 0) + (index + 1) }}
  </ng-template>
  <ng-template st-row="averageCreditGradePoint" let-row let-index="index">
    {{ row.averageCreditGradePoint | number: '1.2-2' }}
  </ng-template>

  <ng-template #expand let-row let-index="index" let-column="column">
    <st #stchild [data]="row?.studentCourseGrades" [bordered]="true" [page]="{ show: false }" (change)="change($event)"
      [columns]="childColumns" [scroll]="{ y: '100%' }" *ngIf="row.studentCourseGrades.length > 0">
      <ng-template st-row="number" let-row let-index="index">
        {{ ((stchild.pi ? stchild.pi : 1) - 1) * (stchild.ps ? stchild.ps : 0) + (index + 1) }}
      </ng-template>
      <ng-template st-row="operations" let-row let-index="index">
        <a (click)="view(row)">查看</a>
      </ng-template>
    </st>
  </ng-template>
</st>
<app-score-entry-detail #scoreEntryDetailComponent (notification)="loadData()">
</app-score-entry-detail>
